package com.ruoyi.quartz.task;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.starbucks.service.IStarbucksAccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author ruoyi
 */
@Slf4j
@Component("StarbucksTask")
public class StarbucksTask {

    @Autowired
    private IStarbucksAccountService starbucksAccountService;

    public void updateInfo() {
        log.info("--------------------开始执行定时任务-------同步全部信息");
        AjaxResult result = starbucksAccountService.updateInfo(null,null);
        log.info("---------------"+result.toString());
    }
}
